/* Copyright © Worklight Ltd. 2006-2011.  All rights reserved. */

package com.worklight.androidgap.push;

/**
 * Error code as describe in http://code.google.com/intl/en-US/android/c2dm/
 */

public enum C2DMErrorCode {
	SERVICE_NOT_AVAILABLE("Push Service: The device can't read the response, or there was a 500/503 from the server that can be retried later"),
	ACCOUNT_MISSING("Push Service: There is no Google account on the phone."),
	AUTHENTICATION_FAILED("Push Service: Bad password."),
	TOO_MANY_REGISTRATIONS("Push Service: The user has too many applications registered."),
	INVALID_SENDER("Push Service: The sender account is not recognized."),
	PHONE_REGISTRATION_ERROR("Push Service: incorrect phone registration with Google."),
	INVALID_PARAMETERS("Push Service: invalid parameter for email sender."),
	UNEXPECTED("Push Service: unexpected error from google c2dm service");
		
	private final String description;
	
	C2DMErrorCode(String description) {		
		this.description = description;
    }
    
    public String getDescription() {
        return description;
    }
}
